package com.dingwen.pro.demo01;

/**
 * 中介
 *
 * @author dingwen
 * @date 2021/10/06
 */
public class Intermediary implements Rent{
    /**
     * 房东
     */
    private Host host;

    public void setHost(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        // 中介带看房子
        see();
        host.rent();
        sign();
        // 签订合同
    }
    public void see(){
        System.out.println("看房");
    }
    public void sign(){
        System.out.println("签合同");
    }
}
